#ifndef USERMANAGERHIDECOLUMNDLG_H
#define USERMANAGERHIDECOLUMNDLG_H

#include <QDialog>
#include <QDebug>
#include <QVBoxLayout>
#include <QCheckBox>
#include <QTableWidget>


namespace Ui {
class UserManagerHideColumnDlg;
}

class UserManagerHideColumnDlg : public QDialog
{
    Q_OBJECT

public:
    explicit UserManagerHideColumnDlg(QStringList *list,QTableWidget *t,QWidget *parent = nullptr);
    ~UserManagerHideColumnDlg();

private slots:

    void on_btn_right_clicked();


    void on_tableWidget_left_itemSelectionChanged();

    void on_btn_left_clicked();

    void on_tableWidget_right_itemSelectionChanged();

    void on_checkBox_left_stateChanged(int arg1);

    void on_checkBox_right_stateChanged(int arg1);

private:
    Ui::UserManagerHideColumnDlg *ui;

    QTableWidget *tableWidget;

    QList<QTableWidgetItem*> leftItems;
    QTableWidgetItem *createWidgetItem(const QString &labelText);

    QList<QTableWidgetItem*> rightItems;

};

#endif // USERMANAGERHIDECOLUMNDLG_H
